/* 自定义样式 */
.prose {
    color: #374151;
    max-width: none;
}

.prose h1 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.75;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.125em 0.25em;
    border-radius: 0.25em;
    font-size: 0.875em;
}

.prose pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin: 1em 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.prose blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #6b7280;
}

.prose ul, .prose ol {
    margin: 1em 0;
    padding-left: 2em;
}

.prose li {
    margin: 0.5em 0;
}

.prose a {
    color: #3b82f6;
    text-decoration: underline;
}

.prose a:hover {
    color: #1d4ed8;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5em;
    margin: 1em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.5em;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .prose {
        font-size: 0.875rem;
    }
    
    .prose h1 {
        font-size: 1.5em;
    }
    
    .prose h2 {
        font-size: 1.25em;
    }
    
    .prose h3 {
        font-size: 1.125em;
    }
}

/* 代码高亮样式 */
pre[class*="language-"] {
    background: #1e293b;
    color: #e2e8f0;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #94a3b8;
}

.token.punctuation {
    color: #e2e8f0;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f472b6;
}

.token.boolean,
.token.number {
    color: #fbbf24;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #34d399;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
    color: #e2e8f0;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
    color: #60a5fa;
}

.token.keyword {
    color: #c084fc;
}

.token.regex,
.token.important {
    color: #fbbf24;
}

/* 行数限制 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
